home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
MEDICAL
/
H121A.ZIP
/
FILES6.EXE
/
lha
/
ZSCORE.PGM
< prev
next >
Wrap
Text File
|
1991-07-15
|
4KB
|
88 lines
************************************************************************
*ZSCORE.PGM Version 1.0, 20/FEB/1990 *
*An Epi Info program to present anthropometric Z-score distributions *
* by Kevin Sullivan, Division of Nutrition, CDC *
************************************************************************
echo
echo
echo You must read a file in order to run this program. Type
echo READ and the name of a file. There is an example data
echo file called NUTRI that can be used.
echo
?EPI>?
************************************************************************
*Declare missing variables based on Record Flag (same as AMISS1.PGM) *
************************************************************************
Define NOHA #
Define NOWH #
Define NOWA #
If (flag=1) or (flag=3) or (flag=5) or (flag=7) then NOHA = 1 else NOHA = 0
If NOHA then HAZ=.
If NOHA then HAP=.
If NOHA then HAM=.
If (flag=2) or (flag=3) or (flag=6) or (flag=7) then NOWH = 1 else NOWH = 0
If NOWH then WHZ=.
If NOWH then WHP=.
if NOWH then WHM=.
If (flag>3) and (flag<8) then NOWA = 1 else NOWA = 0
If NOWA then WAZ=.
If NOWA then WAP=.
If NOWA then WAM=.
************************************************************************
*Define Z-score categories *
************************************************************************
Define HAZGRP _
Define WHZGRP _
Define WAZGRP _
************************************************************************
*Create Z-score categories *
* note: was not able to use recode command with negative numbers *
************************************************************************
If HAZ>=-6.00 and HAZ<=-5.0 then HAZGRP="a"
If HAZ>=-4.99 and HAZ<=-4.5 then HAZGRP="b"
If HAZ>=-4.49 and HAZ<=-4.0 then HAZGRP="c"
If HAZ>=-3.99 and HAZ<=-3.5 then HAZGRP="d"
If HAZ>=-3.49 and HAZ<=-3.0 then HAZGRP="e"
If HAZ>=-2.99 and HAZ<=-2.5 then HAZGRP="f"
If HAZ>=-2.49 and HAZ<=-2.0 then HAZGRP="g"
If HAZ>=-1.99 and HAZ<=-1.5 then HAZGRP="h"
If HAZ>=-1.49 and HAZ<=-1.0 then HAZGRP="i"
If HAZ>=-0.99 and HAZ<=-0.5 then HAZGRP="j"
If HAZ>=-0.49 and HAZ<= 0.0 then HAZGRP="k"
recode haz to hazgrp 0.01-0.50=l 0.51-1.00=m 1.01-1.50=n 1.51-2.00=o 2.01-2.50=p 2.51-3.00=q 3.01-3.50=r 3.51-6.00=s
If HAZ= . then HAZGRP=.
If WHZ>=-6.00 and WHZ<=-5.0 then WHZGRP="a"
If WHZ>=-4.99 and WHZ<=-4.5 then WHZGRP="b"
If WHZ>=-4.49 and WHZ<=-4.0 then WHZGRP="c"
If WHZ>=-3.99 and WHZ<=-3.5 then WHZGRP="d"
If WHZ>=-3.49 and WHZ<=-3.0 then WHZGRP="e"
If WHZ>=-2.99 and WHZ<=-2.5 then WHZGRP="f"
If WHZ>=-2.49 and WHZ<=-2.0 then WHZGRP="g"
If WHZ>=-1.99 and WHZ<=-1.5 then WHZGRP="h"
If WHZ>=-1.49 and WHZ<=-1.0 then WHZGRP="i"
If WHZ>=-0.99 and WHZ<=-0.5 then WHZGRP="j"
If WHZ>=-0.49 and WHZ<= 0.0 then WHZGRP="k"
recode whz to whzgrp 0.01-0.5=l 0.51-1.0=m 1.01-1.5=n 1.51-2.0=o 2.01-2.5=p 2.51-3.0=q 3.01-3.5=r 3.51-6.0=s
If WHZ= . then WHZGRP=.
If WAZ>=-6.00 and WAZ<=-5.0 then WAZGRP="a"
If WAZ>=-4.99 and WAZ<=-4.5 then WAZGRP="b"
If WAZ>=-4.49 and WAZ<=-4.0 then WAZGRP="c"
If WAZ>=-3.99 and WAZ<=-3.5 then WAZGRP="d"
If WAZ>=-3.49 and WAZ<=-3.0 then WAZGRP="e"
If WAZ>=-2.99 and WAZ<=-2.5 then WAZGRP="f"
If WAZ>=-2.49 and WAZ<=-2.0 then WAZGRP="g"
If WAZ>=-1.99 and WAZ<=-1.5 then WAZGRP="h"
If WAZ>=-1.49 and WAZ<=-1.0 then WAZGRP="i"
If WAZ>=-0.99 and WAZ<=-0.5 then WAZGRP="j"
If WAZ>=-0.49 and WAZ<= 0.0 then WAZGRP="k"
recode waz to wazgrp 0.01-0.5=l 0.51-1.0=m 1.01-1.5=n 1.51-2.0=o 2.01-2.5=p 2.51-3.0=q 3.01-3.5=r 3.51-6.0=s
If WAZ= . then WAZGRP=.
************************************************************************
*Ignore missing values for report *
************************************************************************
set ignore=on
************************************************************************
*Use report for z-score output *
************************************************************************
report zscore.rpt